home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / DEV / I-Z / ResExpress 1.0.1.sea / ResExpress 1.0.1 ƒ / ResX DevKit / Think C / ResX.h < prev    next >
Text File  |  1991-01-02  |  6KB  |  166 lines

  1. /*************************************************************************************************************************************
  2.  
  3.     ORIGINAL TYPE DEFINITIONS FROM FILE "RXVW SHELL W/GLOBALS.P"
  4.     ------------------------------------------------------------
  5.         TYPE
  6.  
  7.             SettingsHandle = ^SettingsPtr;                    {Contains Configuration setup, last and second}
  8.             SettingsPtr = ^SettingsRec;                        {to last files opened, and last move info}
  9.             SettingsRec = record
  10.                     unused1: Boolean;
  11.                     openStartup: Boolean;                    {Enable/Disable Open on Startup options}
  12.                     sortTList, sortRList: Boolean;            {Sort Type/Resource list}
  13.                     lastOneRefNum, lastTwoRefNum: integer;    {Last/Second to last volume reference number}
  14.                     lastOneName, lastTwoName: Str255;        {Last/Second to last file name}
  15.                     lastMoveType: ResType;                    {TYPE of the last resource copied}
  16.                     lastMoveID: integer;                    {Resource ID of the last resource copied}
  17.                     lastMoveSource, lastMoveDest: Str255;    {Source and Dest Files of the last resource copied}
  18.                     onStartup: integer;                        {Open on startup option: 1-Last File, 2-Last Two Files, 3-Open File Dialog}
  19.                     unused2: integer;
  20.                     dClick: integer;                        {Current selected item of DoubleClick popup menu}
  21.                     helpFName: Str255;                        {Location of master Help file}
  22.                 end;
  23.  
  24.  
  25.  
  26.             GlobalsHndl = ^GlobalsPtr;                        {ResX Global Data - All data can be programmably}
  27.             GlobalsPtr = ^GlobalsRec;                        {altered.  Alter with care!    * denotes DO NOT alter}
  28.             GlobalsRec = record
  29.                     theDevCtlEnt: DCtlPtr;                    {*Device Control Entry for DA*}
  30.                     rsrcBase: Integer;                        {*Resource Base*}
  31.                     daMenu: MenuHandle;                        {MaIn DA Menu}
  32.                     daFileID: Longint;                        {*File ID of DA*}
  33.  
  34.                     LeftFName, RightFName: Str255;            {Path and Name of Left & Right files currently opened}
  35.                     LeftVNum, RightVNum: integer;            {vRefNum of Left & Right files}
  36.                     LWasOpened, RWasOpened: Boolean;        {Left/Right file was opened priorly and shouldn't be closed}
  37.                     LcurType, RcurType: ResType;            {Current type displayed above resource lists}
  38.                     LTcurCell, RTcurCell: Cell;                {Current selected cell in Left/Right TYPE list}
  39.                     LRcurCell, RRcurCell: Cell;                {Current selected cell in Left/Right RESOURCE list}
  40.                     LfileID, RfileID: integer;                {Left/Right File ID}
  41.                     prefsID: integer;                        {File ID of ResX Prefs in the System Folder}
  42.                     CompactLeft, CompactRight: Boolean;        {Left/Right resource map will be compacted when closed if TRUE}
  43.                     favMenu, extMenu, openMenu: MenuHandle;    {*Favorite File/Externals/Open File MenuHandles}
  44.                     Lopen, Ropen: Boolean;                    {True if Left/Right file is open and displayed in ResX}
  45.                     MFActive: Boolean;                        {*True if MultiFinder is running*}
  46.                     Settings: SettingsHandle;                {Handle to Settings in Configuration setup}
  47.  
  48.                     LTypeList: ListHandle;                    {Handle to Left Type list}
  49.                     RTypeList: ListHandle;                    {Handle to Right Type list}
  50.                     LResList: ListHandle;                    {Handle to Left Resource list}
  51.                     RResList: ListHandle;                    {Handle to Right Resource list}
  52.  
  53.  
  54.                     Info: ControlHandle;                       {Get Info Button Control Handle}
  55.                     View: ControlHandle;                       {View Button Control Handle}
  56.                     OpenLeft: ControlHandle;                   {Open Left Button Control Handle}
  57.                     OpenRight: ControlHandle;                  {Open Right Button Control Handle}
  58.                     Remove: ControlHandle;                     {Remove Button Control Handle}
  59.                     Copy: ControlHandle;                       {Copy Button Control Handle}
  60.  
  61.  
  62.                 end;                                        {DO NOT alter globals denoted with *.  They can}
  63.                                                             {be accessed for reference only.}
  64.  
  65. *************************************************************************************************************************************/
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73. /********************************************
  74.  
  75.     ResX.h
  76.     
  77.          AUTHOR:    Robert A. Daniel
  78.                     1156 W. 103rd St., Suite #150
  79.                     Kansas City, MO 64114
  80.     
  81.       COPYRIGHT:    Copyright © 1990
  82.                       by Robert A. Daniel
  83.                       All Rights Reserved
  84.     
  85.     ENVIRONMENT:    Symantec THINK C version 4.02
  86.     
  87.            DATE:    12/27/90
  88.                        ( modified from original pascal
  89.                            interface by Galen Babcock )
  90.  
  91. ********************************************/
  92.  
  93.     
  94.     
  95. #    ifndef        __H__RESX__
  96. #        define    __H__RESX__
  97.  
  98. #    ifndef        _MacTypes_
  99. #        include <MacTypes.h>
  100. #    endif
  101.  
  102. #    ifndef _DeviceMgr_
  103. #        include <DeviceMgr.h>
  104. #    endif
  105.  
  106. #    ifndef    _MenuMgr_
  107. #        include <MenuMgr.h>
  108. #    endif
  109.  
  110. #    ifndef    _ListMgr_
  111. #        include <ListMgr.h>
  112. #    endif
  113.  
  114. typedef struct SettingsRec
  115.     {
  116.         Boolean        unused1;
  117.         Boolean        openStartup;
  118.         Boolean        sortTList, sortRList;
  119.         short        lastOneRef, lastTwoRef;
  120.         Str255        lastOneName, lastTowName;
  121.         ResType        lastMoveType;
  122.         short        lastMoveID;
  123.         Str255        lastMoveSource, lastMoveDest;
  124.         short        onStartup;
  125.         short        unused2;
  126.         short        dClick;
  127.         Str255        helpFName;
  128.     } SettingsRec, *SettingsPtr, **SettingsHandle;
  129.     
  130. typedef struct GlobalsRec
  131.     {
  132.         DCtlPtr            theDevCtlEnt;
  133.         short            rsrcBase;
  134.         MenuHandle        daMenu;
  135.         long            daFileID;
  136.         
  137.         Str255            LeftFName, RightFName;
  138.         short            LeftVNum, RightVNum;
  139.         Boolean            LWasOpened, RWasOpened;
  140.         ResType            LcurType, RcurType;
  141.         Cell            LTcurCell, RTcurCell;
  142.         Cell            LRcurCell, RRcurCell;
  143.         short            LfileID, RfileID;
  144.         short            prefsID;
  145.         Boolean            CompactLeft, CompactRight;
  146.         MenuHandle        favMenu, extMenu, openMenu;
  147.         Boolean            LOpen, ROpen;
  148.         Boolean            MFActive;
  149.         SettingsHandle    Settings;
  150.         
  151.         ListHandle        LTypeList;
  152.         ListHandle        RTypeList;
  153.         ListHandle        LResList;
  154.         ListHandle        RResList;
  155.         
  156.         ControlHandle    Info;
  157.         ControlHandle    View;
  158.         ControlHandle    OpenLeft;
  159.         ControlHandle    OpenRight;
  160.         ControlHandle    Remove;
  161.         ControlHandle    Copy;
  162.     } GlobalsRec, *GlobalsPtr, **GlobalsHndl;
  163.     
  164. #    endif
  165.  
  166.